package aop.common.model;

import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class CommonDAOImpl implements CommonDAO {
	@Resource(name="sqlSessionTemplate")
	private SqlSessionTemplate sqlSessionTemplate;
	/**
	 * @author 이상호
	 * @date 2014.07.04
	 * left 로그인 회원 순위
	 */
	@Override
	public List<HashMap> loginMemberRank() {
		return sqlSessionTemplate.selectList("common.loginMemberRank");
	}
	
	/**
	 * @author 이상호
	 * @date 2014.07.04
	 * left 검색어 순위
	 */
	@Override
	public List<HashMap> searchWordRank() {
		return sqlSessionTemplate.selectList("common.searchWordRank");
	}
}
